﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OPM.Models
{
    public class GetContact
    {
        public string id { get; set; }
        public string contact_code { get; set; }
        public string objective_id { get; set; }
        public string objective_text { get; set; }
        public DateTime contact_date { get; set; }
        public string channel_id { get; set; }
        public string channel_text { get; set; }
        public string account_id { get; set; }
        public string account_name { get; set; }
        public string detail { get; set; }
        public string tq_key { get; set; }
        public string _is_public { get; set; }
        public string is_public
        {
            get
            {
                return _is_public;
            }
            set
            {
                if (is_public == "T")
                {
                    _is_public = "ปกปิด";
                }
                else
                {
                    _is_public = "เปิดเผย";
                }
            }
        }
              
        public string created_by { get; set; }
        public string created_by_text { get; set; }

    }
}
